function [LabeledRanksTable] = Ddavid_get_feature_labeled_ranks_testing(SampledTrueLabelTraining, K, KL, TestingKNNList)

TrainingSize = size(SampledTrueLabelTraining, 1);
TestingSize = size(TestingKNNList, 1);
LabelSize = size(SampledTrueLabelTraining, 2);

LabeledRanksTable = ones(TestingSize, LabelSize) * 1.0;

for LabelCounter = 1:LabelSize
    SampledTrueLabelTrainingOfSingleLabel = SampledTrueLabelTraining(:, LabelCounter);
    
    TestingKNNLabeledList = Ddavid_get_knn_labeled_list(SampledTrueLabelTrainingOfSingleLabel, TestingKNNList);
    
    for SizeCounter = 1:TestingSize
        TempList = find(TestingKNNLabeledList(SizeCounter, :) == 1);
        TempListSize = size(TempList);
        if(TempListSize >= KL)
            LabeledRanksTable(SizeCounter, LabelCounter) = 1.0 - TempList(KL) / (TrainingSize + 1.0);
        end
    end
end
